package com.heima.user.controller;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.heima.model.user.pojos.ApUserFollow;
import com.heima.user.mapper.UserFollowMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ApUserFollowClient {

    @Autowired
    private UserFollowMapper userFollowMapper;
    @PostMapping("/getFollowById")
    public ApUserFollow getFollowById(Integer id){
        LambdaQueryWrapper<ApUserFollow> eq = new LambdaQueryWrapper<ApUserFollow>().eq(ApUserFollow::getFollowId, id);
        return userFollowMapper.selectOne(eq);
    }
}
